home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / dist-packages / softwareproperties / gtk / dialogs.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  695 b   |  14 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import gtk
  5.  
  6. def show_error_dialog(parent, primary, secondary):
  7.     p = '<span weight="bold" size="larger">%s</span>' % primary
  8.     dialog = gtk.MessageDialog(parent, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, '')
  9.     dialog.set_markup(p)
  10.     dialog.format_secondary_text(secondary)
  11.     dialog.run()
  12.     dialog.hide()
  13.  
  14.